public class Sum{
    public static void main(String args[]){
        int sum=0,factorial=0;
        for(int i=1;i<11;i++)
        {
            sum+=Fuc.Factorial(i);
        }
        System.out.printf("1!+2!+...+10! = %d",sum);
    }
}
class Fuc{
    public static int Factorial(int n){
        if(n==1)
            return 1;
        else
            return n*Factorial(n-1);
    }
}

